package demo4;

public class PhoneParam {
    public static void main(String[] args) {
        Phone one = new Phone();
        one.brand = "小米";
        one.price = 4699.0;
        one.color = "月牙白";
        method(one);//传递进去的参数其实是地址值


    }
    public static void method(Phone Param){
        System.out.println("品牌："+Param.brand+"   "+"价格："+Param.price+"   "+"颜色："+Param.color);
    }
}
